CC := g++
CFLAGS := -Wall -g
INCLUDES := -I				#add -I option (cur dir.) to compiler
LIBS := 
OBJECTS := $(patsubst %.cpp,%.o,$(wildcard *.cpp))

all: main

main: $(OBJECTS)
	$(CC) -o main $(OBJECTS)
	
%.o: %.cpp
	$(CC) $(INCLUDES) $(CFLAGS) -c -o $@ $<

clean:
	rm *o main
